#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QGraphicsScene>
#include <QLabel>
#include <QFileInfo>
#include <QColor>
#include <QPixmap>
#include <QGraphicsPixmapItem>
#include <QFileDialog>
#include <QDebug>
#include <QString>
#include <QObject>


#include <QFileDialog>
#include <QMessageBox>
#include <QStandardPaths>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();




    void cleanImage();

    void OpenImage(QString imagePath);

    void showImage(int argc, char *argv[]);

private slots:
    void on_actionOpen_triggered();

    void on_actionClose_triggered();

    void on_actionExit_triggered();

    //2019-05-07 移动信号
    void on_graphics_myMouseMoveEvent(QMouseEvent *e);


private:
    Ui::MainWindow *ui;
    QGraphicsScene *leftScene;
    QGraphicsPixmapItem* leftPixmapItem;
    QLabel *lblSize;
    QLabel *lblRgb;

    QFileInfo *info;

    QString getUserName();

    QString getUserPath();


    //记录图片的宽 高 2019-05-07 ludc
    int pixImageWidth;
    int pixImageHeight;
    int pix_X;
    int pix_Y;
    QImage qImage;
    QColor pixColor;




};

#endif // MAINWINDOW_H
